package com.pig4cloud.pigx.contract.mongo.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pig4cloud.pigx.common.customize.utils.serializer.BigDecimalToPlainStringSerializer;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 深度图mongo
 *
 * @date 2022/8/27 17:01
 */
@Data
public class ContractDepthMapMongo {
	/**
	 * 价格
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal price;
	/**
	 * 数量
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal num;
}
